const pxtorem = require("postcss-pxtorem");

module.exports = {
  publicPath: './',
  css: {
    loaderOptions: {
      less: {
        lessOptions: {
          modifyVars: {
            // 直接覆盖变量
            hack: `true; @import "src/assets/css/style.less";`,
          },
        },
      },
      postcss: {
        plugins: [
          pxtorem({
            rootValue: 37.5,
            propList: ["*"],
            // 在使用 Circle 组件时需要
            selectorBlackList: ["van-circle__layer"],
          }),
        ],
      },
    },
  },
};
